<template>
  <div class="page_user" id="user_collect">
    <div class="warp">
      <div class="container">
        <div class="row justify-content-between">
          <div class="col-12 col-md-3">
            <div class="card_menu">
              <list_menu_user :list_info="list_info"></list_menu_user>
            </div>
          </div>
          <div class="col-12 col-md-9">
            <div class="card_collect pl-2">
              <div>收藏夹</div>
            </div>
            <list_collect :list="list"></list_collect>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import mixin from "../../mixins/page.js";
import list_menu_user from "../../components/diy/list_menu_user.vue";
import list_collect from "../../components/diy/list_collect.vue";
export default {
  mixins: [mixin],
  data() {
    return {
      url_get_list: "~/api/collect/get_list?",
      query: {
        user_id: 0,
      },
      list: [],
      list_info: [
        {
          title: "个人资料",
          url: "/user/info",
          icon: "house-fill",
          selected: false,
        },
        {
          title: "密码修改",
          url: "/user/password",
          icon: "person-fill",
          selected: false,
        },
        {
          title: "收货地址",
          url: "/user/address",
          icon: "map-fill",
          selected: false,
        },
        {
          title: "收藏",
          url: "/user/collect",
          icon: "heart-fill",
          selected: true,
        },
        {
          title: "订单",
          url: "/order/list",
          icon: "file-earmark-minus-fill",
          selected: false,
        },
        {
          title: "购物车",
          url: "/cart/list",
          icon: "cart-fill",
          selected: false,
        },
      ],
    };
  },
  methods: {},
  components: {
    list_menu_user,
    list_collect,
  },
};
</script>

<style scoped>
.container{
  min-height: 600px;
}
</style>
